package com.testclone;


/**
 * Created by yijy on 2017/9/8.
 */
public class TestCloneMain {
    public static void main(String[] args) {
        MyStack my = new MyStack();
        my.push(1);
        my.push(2);
        my.push(3);
        my.push(4);
        my.push(5);
        while (!my.isEmpty()){
            System.out.println(my.pop());
        }

        MyStack my1 = new MyStack();
        my1.pushlinked(1);
        my1.pushlinked(2);
        my1.pushlinked(3);
        my1.pushlinked(4);
        my1.pushlinked(5);
        while (!my1.isEmpty1()){
            System.out.println("linkedlist: "+my1.poplinked());
        }

    }
}
